<style>
    .content {
        padding-bottom: 50px;
    }
</style>

<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-oldversion" class="control-label col-xs-12 col-sm-2">{:__('Oldversion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-oldversion" class="form-control" name="row[oldversion]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-newversion" class="control-label col-xs-12 col-sm-2">{:__('Newversion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-newversion" class="form-control" name="row[newversion]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-packagesize" class="control-label col-xs-12 col-sm-2">{:__('Packagesize')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-packagesize" class="form-control" name="row[packagesize]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control" name="row[content]"></textarea>
        </div>
    </div>
    <!--    <div class="form-group">-->
    <!--        <label for="c-downloadurl" class="control-label col-xs-12 col-sm-2">{:__('Downloadurl')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <input id="c-downloadurl" class="form-control" name="row[downloadurl]" type="text" value="">-->
    <!--        </div>-->
    <!--    </div>-->
    <div class="form-group">
        <label for="c-downloadurl" class="control-label col-xs-12 col-sm-2">{:__('Downloadurl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-downloadurl" data-rule="" class="form-control"
                       size="50" name="row[downloadurl]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="faupload-downloadurl" class="btn btn-danger faupload"
                                data-input-id="c-downloadurl"
                                data-mimetype="*/*"
                                data-multiple="false" data-preview-id="p-downloadurl">
                            <i class="fa fa-upload"></i> {:__('Upload')}</button>
                    </span>
                    <span><button type="button" id="fachoose-downloadurl" class="btn btn-primary fachoose"
                                  data-input-id="c-downloadurl" data-mimetype="*/*" data-multiple="false">
                        <i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-downloadurl"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-downloadurl"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-wgturl" class="control-label col-xs-12 col-sm-2">{:__('WGT地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-wgturl" data-rule="" class="form-control"
                       size="50" name="row[wgturl]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="faupload-wgturl" class="btn btn-danger faupload"
                                data-input-id="c-wgturl"
                                data-mimetype="*/*"
                                data-multiple="false" data-preview-id="p-wgturl">
                            <i class="fa fa-upload"></i> {:__('Upload')}</button>
                    </span>
                    <span><button type="button" id="fachoose-wgturl" class="btn btn-primary fachoose"
                                  data-input-id="c-wgturl" data-mimetype="*/*" data-multiple="false">
                        <i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-wgturl"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-wgturl"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-update_type" class="control-label col-xs-12 col-sm-2">{:__('更新类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[update_type]', [1=>__('整包更新'), 2=>__('热更新')], 1)}
        </div>
    </div>
    <div class="form-group">
        <label for="c-enforce" class="control-label col-xs-12 col-sm-2">{:__('Enforce')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[enforce]', [1=>__('Yes'), 0=>__('No')], 1)}
        </div>
    </div>
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
